#include "StdAfx.h"
#include "MemoryAlloc.h"

VAMPIRE_NAMESPACE_BEGIN

void* MemoryAlloc::operator new( size_t sz, const char* file, int line, const char* func )
{
	return MemoryAllocator::allocBytes(sz, file, line, func);
}

void* MemoryAlloc::operator new( size_t sz )
{
	return MemoryAllocator::allocBytes(sz);
}

void* MemoryAlloc::operator new( size_t sz, void* ptr )
{
	return ptr;
}

void* MemoryAlloc::operator new[]( size_t sz, const char* file, int line, const char* func )
{
	return MemoryAllocator::allocBytes(sz, file, line, func);
}

void* MemoryAlloc::operator new[]( size_t sz )
{
	return MemoryAllocator::allocBytes(sz);
}

void  MemoryAlloc::operator delete( void* ptr, void* )
{
	MemoryAllocator::deallocBytes(ptr);
}

void  MemoryAlloc::operator delete( void* ptr, const char* , int , const char* )
{
	MemoryAllocator::deallocBytes(ptr);
}

void  MemoryAlloc::operator delete( void* ptr )
{
	MemoryAllocator::deallocBytes(ptr);
}

void  MemoryAlloc::operator delete[]( void* ptr, const char* , int , const char* )
{
	MemoryAllocator::deallocBytes(ptr);
}

void  MemoryAlloc::operator delete[]( void* ptr )
{
	MemoryAllocator::deallocBytes(ptr);
}

VAMPIRE_NAMESPACE_END